<template>
  <el-time-picker
    style="width: 100%"
    :is-range="item.isRange || false"
    :arrow-control="item.arrowControl || false"
    :value-format="item.valueFormat || 'yyyy-MM-dd HH:mm:ss'"
    @change="handleChange"
    v-model="model"
    :disabled="item.disabled"
    :clearable="item.clearable || true"
    :range-separator="item.rangeSeparator || '-'"
    :start-placeholder="item.startPlaceholder || '开始时间'"
    :end-placeholder="item.endPlaceholder || '结束时间'"
    :placeholder="getPlaceholder('请输入')"
    :picker-options="item.pickerOptions"
    :editable="item.editable || false"
  >
  </el-time-picker>
</template>

<script>
import yDefault from "./y-default.vue";
export default {
  name: "y-timeSelect",
  includesComponent: ['timeSelect'],
  extends: yDefault,
};
</script>